//调用接口配置文件
import { request } from 'config/request'
// 定义接口
//所有地址
export async function queryAllAddress(params) {
    return request({
        url: 'admin/address/queryAllAddress',
        method: 'GET',
        data: params,
    });
};
//楼栋鸟撖图
export async function queryBuildingPic(params) {
    return request({
        url: 'admin/building/queryBuildingPic',
        method: 'GET',
        data: params,
    });
};
//楼盘列表
export async function queryestateList(params) {
    return request({
        url: 'admin/estate/adminList',
        data: params,
        method: "POST",
        headers: {
            "Content-type": "application/json"
        },
    });
};

//户型列表
export async function houseTypeList(params) {
    return request({
        url: 'admin/housetype/list',
        data: params,
        method: "POST",
        headers: {
            "Content-type": "application/json"
        },
    });
};
//楼栋详情
export async function buildingDetail(params) {
    return request({
        url: 'admin/building/detail',
        data: params,
        method: "GET",
    });
};

//提交
export async function sumbit(params) {
    return request({
        url: 'admin/building/create',
        data: params,
        method: "POST",
        headers: {
            "Content-type": "application/json"
        },
    });
};
//编辑
export async function update(params) {
    return request({
        url: 'admin/building/update',
        data: params,
        method: "POST",
        headers: {
            "Content-type": "application/json"
        },
    });
};
// 户型详情
export async function getHouseTypeDetail(params) {
    return request({
      url: 'admin/housetype/detail',
      method: 'GET',
      data: params,
      headers:{
        "Content-type":"application/json",
      }
    });
  };